<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Magic 口碑营销平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="stylesheet" href="../css/magic.css">
</head>
<body>
<div id="wrap">
  <form id="validate">
    <h2 class="title">新增黑名单</h2>
    <table>
      <tbody>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="black-name">用户名：</label></th>
          <td><input type="text" name="blackname" class="text s-size" id="black-name"></td>
        </tr>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="if-black">黑名单：</label></th>
          <td><select name="ifblack" id="if-black">
              <option value="">是</option>
              <option value="">否</option>
            </select></td>
        </tr>
        <tr>
          <th><label for="black-desc">备注：</label></th>
          <td><textarea class="s-size" name="blackdesc" id="black-desc"></textarea></td>
        </tr>
        <tr>
          <th></th>
          <td><input type="submit" value="保存" class="btn">
            <button class="auto-close">关闭</button></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<script charset="utf-8" src="../js/jquery.js"></script>
<script charset="utf-8" src="../js/jquery.validate.js"></script>
<script charset="utf-8" src="../js/auto.js"></script>
<script>
$().ready(function() {
		$("#validate").validate({
				rules: {
						blackname: "required"
				},
				messages: {
						blackname: "Please enter username"
				}
		});
});
</script>
</body>
</html>